package org.example.Server.model.examination.data;

import lombok.Data;

/**
 * 试卷概览
 */
@Data
public class PaperData {
    Integer paper_id;
    Double total_score;
    Integer during_time;
    Integer candidate_num;//应考人数
    Integer exam_num;//实际人数
    Double average_score;//平均分
    Double max_score;//最高分
    Double min_score;//最低分
    Integer best_counts;//优秀人数
    Integer good_counts;//良好人数
    Integer pass_counts;//及格人数
    Integer fail_counts;//不及格人数

    public void setAverage_score(Double average_score) {
        this.average_score = Math.round(average_score * 100) / 100.0;
    }
}

